export const getData = async (_: any) => {
  const data = {
    tableInfo: null,
    formDesignInfo: null,
    tableDesignInfo: {
      titles: [
        {
          dataType: null,
          fieldType: null,
          title: '项目名称1',
          width: 150,
          fixed: null,
          dataIndex: 'left1',
        },
        {
          dataType: null,
          fieldType: null,
          title: '项目名称2',
          width: 150,
          fixed: null,
          dataIndex: 'left2',
        },
        {
          dataType: null,
          fieldType: null,
          title: '项目名称3',
          width: 150,
          fixed: null,
          dataIndex: 'left3',
        },
        {
          dataType: null,
          fieldType: null,
          title: '项目名称4',
          width: 150,
          fixed: null,
          dataIndex: 'left4',
        },
        {
          dataType: null,
          fieldType: null,
          title: '操作',
          width: 150,
          fixed: null,
          dataIndex: '3',
        },
      ],
      pageSize: 10,
      formConfig: null,
      tableButtons: [
        {
          code: null,
          location: '左上',
          label: '新增',
          icon: 'el-icon-plus',
          api: null,
          right: '1',
          params: null,
          click: 'addHandle()',
          desc: null,
        },
        {
          code: null,
          location: '左上',
          label: '导入',
          icon: 'el-icon-upload',
          api: null,
          right: '4',
          params: null,
          click: 'importHandle()',
          desc: null,
        },
      ],
      tableSetting: null,
    },
  };

  return new Promise((resolve) => {
    setTimeout(() => resolve(data), 1 * 1000);
  });
};
